package com.greencloud.mapstructplus.entity;

import com.greencloud.mapstructplus.dto.UserDto;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMapping;
import lombok.Data;

import java.util.Date;

/**
 * @author LiuDehuai
 * @fileName:User
 * @Date:2025/1/24 下午3:59
 */
// 指定映射对象
@AutoMapper(target = UserDto.class)
@Data
public class User {
    private String username;
    private int age;
    @AutoMapping(dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date dateOfBirth;
}
